const tip = function(resCode){
    if(resCode){
        let code = resCode.code+'';
        let msg= resCode.msg;
        if(code.startsWith('2')){
            this.$message({
                message: msg,
                type: 'success'
            });
        }else if(code.startsWith('5')){
            this.$message({
                message: msg,
                type: 'error'
            });
        }
    }
    
}
export default tip;